//文件管理模块API
import axios from '../axios'

//上传文件
export const upload = (data) => {
  return axios({
    url: '/file/upload',
    headers: {
      'Content-type': 'multipart/form-data'
    },
    method: 'post',
    data: data
  })
};

//删除文件
export const deleteFile = (param) => {
  return axios({
    url: '/file/delete',
    method: 'post',
    params: param
  })
};
